//
//  UIViewController+Addtions.h
//  HuiXianxia
//
//  Created by hzdlapple2 on 15/11/12.
//  Copyright © 2015年 何霄云. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (KNAddtions)

+ (UIViewController *)KNGetCurrentViewController;

- (UIViewController *)KNFindViewControllerFromStack:(Class)Class;

- (void)KNRemoveFromStack;

- (void)KNRemoveSelfFromStackAndPushViewController:(UIViewController *)vc;

- (void)KNRemoveViewControllerFromStack:(UIViewController *)removeVC;

- (void)KNRemoveViewControllerFromStack:(UIViewController *)removeVC andPushViewController:(UIViewController *)toVc;

- (void)KNRemoveSelfFromStackAndPushViewControllers:(NSArray *)vcs;

- (UIViewController *)KNGetPresentedViewController;

@end
